{extend name="homePage/userPage" /}
{block name="css"}
{/block}
{block name="main"}
    <div style="border:1px solid #ccc">
            <form class="form-horizontal" method="post" action="{:url('index/User/edituser')}" enctype="multipart/form-data" >
                <input type="hidden" name="id" value="{$user.id}">
                <div class="form-group">
                    <label for="exampleInputAccount4" class="col-sm-2">部门名称</label>
                    <div class="col-md-6 col-sm-10">
                      <input type="text" class="form-control name" id="exampleInputAccount4" name="classname" value="{$classname}" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label for="exampleInputAccount4" class="col-sm-2">职位</label>
                    <div class="col-md-6 col-sm-10">
                      <input type="text" class="form-control name" id="exampleInputAccount4" name="position" value="{$user.position}"  disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label for="exampleInputAccount4" class="col-sm-2">姓名</label>
                    <div class="col-md-6 col-sm-10">
                      <input type="text" class="form-control name" id="exampleInputAccount4" name="name"  value="{$user.name}"disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label for="exampleInputAccount4" class="col-sm-2">联系方式</label>
                    <div class="col-md-6 col-sm-10">
                      <input type="text" class="form-control name" id="exampleInputAccount4" name="phone" value="{$user.phone}" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label for="exampleInputAccount4" class="col-sm-2">头像</label>
                    {if condition="$user.imgurl neq ''"}
                    <div class="col-md-6 col-sm-10">
                    <img src="__STATIC__/../uploads/{$user['imgurl']}" alt="" width="200">
                    </div>
                    {else /}
                    <div class="col-md-6 col-sm-10">
                      <input type="text" class="form-control name" id="exampleInputAccount4"  value="暂无数据" disabled>
                    </div>
                    {/if}
                </div>
                <div class="form-group">
                    <label for="exampleInputAccount4" class="col-sm-2">签名</label>
                    {if condition="$user.picurl neq ''"}
                    <div class="col-md-6 col-sm-10">
                    <img src="__STATIC__/../uploads/{$user['picurl']}" alt="" width="200">
                    </div>
                    {else /}
                    <div class="col-md-4 col-sm-10">
                      <input type="text" class="form-control name" id="exampleInputAccount4"  value="暂无数据" disabled>
                    </div>
                    <div class="col-md-2 ">
                        <a href="{:url('User/index')}" class="btn btn-success">上传签名</a>
                    </div>
                    {/if}
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                    <a href="{:url('User/index')}" class="btn btn-info">修改信息</a>
                    </div>
                </div>
                </form>

    </div>

{/block}
{block name="block"}
{/block}

